#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    int point;
    point = a - b + 2;
    printf("%d", point);
    return 0;
}